<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<LINK REL="stylesheet" HREF="../../templates/css/style.css" TYPE="text/css">
<SCRIPT language="javascript" src="{base_ipurl}lib/cate.js"></SCRIPT> 
<SCRIPT src="../../templates/js/myweb.js"></SCRIPT>
<style media=print>     
  .Noprint{display:none;}     
  .PageNext{page-break-after:   always;}     
</style> 
<script language="javascript" type="text/javascript">
<!--
   function check_all()
   {
      obj = document.getElementsByName("del_id[]");
	  for( i=0; i<obj.length; i++)
	  {
	  	obj[i].checked = obj[i].checked ? false : true;
	  }     
   }
   function delete_all()
   {
   	  obj = document.getElementsByName("del_id[]");
	  var flag = false;
	  for( i=0; i<obj.length; i++)
	  {
	  	if( obj[i].checked )
		{
		   flag = true;
		   break;
		}
	  }  
	  if( ! flag)
	  {
	    alert("請選擇要刪除單項");
		return false;
	  }
	  if( window.confirm("此操作將不可以恢復!"))
	  {
	    return true;
	  }else{
	  	return false;
	  }
   }
	function check_form()
	{
      var k = objSorts.childNodes.length;
	  cur_num = k - 1;
      cur_list = document.getElementById("sel_" + cur_num);
	  cur_value = cur_list.value;
	  if (cate[cur_value] || cur_value == "")
	  { 
	    prev_num = cur_num - 1;  //上一个列表框		
	    obj = document.getElementById("sel_" + prev_num);
		if (! obj) cur_value = 0;
		cur_value = obj.value;
	  }	//End if 
	  document.frm_cate.s_cate.value = cur_value;
	  return true;
	} //End fun
   function init_cate()
   {
     {INIT_CATE}
   }
 //-->	   
</script>
<script language=javascript>
function doPrint() { 
bdhtml=window.document.body.innerHTML; 
sprnstr="<!--startprint-->"; 
eprnstr="<!--endprint-->"; 
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
window.document.body.innerHTML=prnhtml; 
window.print(); 
}
</script>
<body onLoad="init_cate()">
<table width="98%" border="0" class="table2">
  <tr>
    <td>管理中心 - 回報管理  - 已簽約回報 </td>
  </tr>
</table>
<form name="frm_cate" method="post" onSubmit="return check_form()">
<table width="98%" border="0" class="table1" cellpadding="0" cellspacing="0">
<tr>
  <th colspan="2">顯示要查找的信息</th>
  </tr>
  <td width="8%">匯款人：    </td>
  <td width="92%">
    <input name="search_key" type="text" id="search_key" value="{SEARCH_KEY}" size="30" />
    <input name="btn_sub2" type="submit" id="btn_sub2" value="查 找" class="bot" />
    <input name="btn_all3" type="submit" id="btn_all3" value="顯示所有" class="bot" />

    </td>
  </table>
    <input type="hidden" name="s_cate" value="0"/>
</form>
<form name="frm_del"  method="post" action="?mode=del_lease" id="frm_del" onSubmit="return delete_all()">
<input type="hidden" name="hid_mode">
<div id="listDiv">
<!--startprint-->
  <table class="table1" border="0" cellpadding="0" cellspacing="0" width="98%">  
    <tr>
      <th  nowrap width="4%" ><input type="checkbox" onClick="check_all()" name="checkall" /></th>
      <th  nowrap width="10%">房屋編號</th>
      <th  nowrap width="12%">聯繫電話</th>
      <th  nowrap width="13%">地址</th>
      <th  nowrap width="13%">簽約日期</th>
      <th  nowrap width="12%">分店名稱</th>
      <th  nowrap width="12%">提交帳號</th>
      <th  nowrap width="14%">提交時間</th>
      <th  nowrap width="10%">操作</th>
    </tr>
    <!-- BEGIN NEWS_LIST -->
    <tr align="center">
      <td><input type="checkbox" name="del_id[]" value="{id}"/></td>
      <td nowrap>{hou_num}</td>
      <td nowrap>{tel}</td>
      <td nowrap align=left>{address}</td>
      <td nowrap>{addtime}</td>
      <td nowrap>{store}</td>
      <td nowrap>{admin_name}</td>
      <td nowrap>{addtime}</td>
      <td nowrap style="font-size:12px" >
      <a href="javascript:if(confirm('確定要這樣操作嗎？'))location='remove.php?id={id}'">移至租出回報</a>
      <a href="javascript:if(confirm('確定要這樣操作嗎？'))location='update.php?hou_num={hou_num}'">{yi}關閉</a>　
      <a href="javascript:if(confirm('確定要這樣操作嗎？'))location='del.php?hou_num={hou_num}&id={id}'">徹底刪除</a></td>
    </tr>
    <!-- END NEWS_LIST -->
	<tr>
      <td colspan="10"><input name="btn_all2" type="button" id="btn_all2" value="全 選" 
	   onClick="javascript:check_all(document.frm_del,true);" class="back"/>　
       <input name="btn_cancel" type="button" id="btn_cancel" value="取 消" 
	   onClick="javascript:check_all(document.frm_del,false);" class="back" />　
	   <input class="del" type="submit" name="delete_all()" value="刪 除" />
	   <input type=button class="back"  value=列印 onClick="doPrint()">
	   <!--<input type=button class="back"  value=页面設置 onclick=document.all.WebBrowser.ExecWB(8,1)>
	   <input type=button class="back"  value=列印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>-->	   </td>
      </tr>
    <tr>
      <td colspan="10"><div align="center">{PAGE_STRING}</div></td>
    </tr>
  </table>
  <!--endprint-->
  </div>
</form>
<script type="text/javascript" src="../../templates/js/tab_js.js"></script> 